var $j = jQuery.noConflict();
$j(document).ready(function(){
//    preloadImages($("img"))
});

//sidebar - read more button
//var $j = jQuery.noConflict();

$j(document).ready(function(){
    $j(".textwidget a#link, a.readon").wrap('<div class="readm_bg" />');
    $j(".rt-article .rt-article-bg p > a:has(img)").addClass('read');
    $j("#rt-bottom .rt-container .textwidget a img ").wrap('<div class="img-shadow" />');
    $j(".textwidget a#link, a.readon").wrapInner('<strong></strong>');
    $j(".textwidget a#link, a.readon").prepend('<span class="readm_bg_hover" />');
     $j("#comments-form-send").prepend('<span class="readm_bg_hover" />');
      $j("div.data-4 input").wrap('<div class="send" />');
      $j(".send").prepend('<span class="send-hover" />');
    $j(".readm_bg_hover").css({
        opacity:0
    });
    $j(".textwidget a#link, a.readon, #comments-form-send, .send").hover(
        function(){
            $j(this).children("span").stop().fadeTo(500, 1)
        },
        function(){
            $j(this).children("span").stop().fadeTo(900, 0)
        }
        );
/*************gelery***************/
 $j('.combo-gallery-main a img').hover(
   function(){$j(this).stop().animate({opacity:0.4}, 600)},
   function(){$j(this).stop().animate({opacity:1}, 600)}
  );
});



//show shadow imagee over image onhover
//  var $j = jQuery.noConflict();


$j(document).ready(function(){
    $j('#rt-bottom .rt-container .textwidget a img, .rt-archive .rt-article-content a img, .ngg-gallery-thumbnail img').each(function(){
        $j(this).animate({
            opacity:'1'
        },1);
        $j(this).mouseover(function(){
            $j(this).stop().animate({
                opacity:'0.6'
            },500);
        });
        $j(this).mouseout(function(){
            $j(this).stop().animate({
                opacity:'1'
            },500);

        });
    });
});
